package com.heima.method;

public class Demo12 {
    public static void main(String[] args) {
        int[] a={1,2,3,4,5,6,7,8,9,10,11};
        for (int i = 0; i < a.length; i++) {
            System.out.print(a[i]+"  ");
        }
        System.out.println();
        System.out.println("--------------------------------");
        th(a);
        for (int i = 0; i < a.length; i++) {
            System.out.print(a[i]+"  ");
        }
        System.out.println();
        System.out.println("--------------------------------");
        ta(a);
        for (int i = 0; i < a.length; i++) {
            System.out.print(a[i]+"  ");
        }
        System.out.println();
    }
    public static void th(int[] a){
        a[6]=100;
    }
    public static void ta(int[] a){
        a=new int[5];
        a[1]=220;
    }
}
